
public class SystemDemo2 {
	public static void main(String[] args) {
		int[] A={10,20,30,40,50};
		int[] B={1,2,3,4,5,6,7,8,9,10};
		System.arraycopy(A, 1, B, 3, 2);
		for(int n:B){
			System.out.print(n+",");
		}
		System.out.println();
	}

}
